package com.mybatis_plus.demo.controller;

import com.mybatis_plus.demo.properties.PersonProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HollerController {

    @Autowired
    private PersonProperties personProperties;

    @RequestMapping("/hello")
    public String hello() {
//        return "hello world!";
        return personProperties.toString();
    }

    @RequestMapping("/hello2")
    public String hello2() {

        return "hello world two";
    }

    @RequestMapping("/hello3")
    public String hello3() {
        return "hello world three";
    }

    @RequestMapping("/hello4")
    public String hello4() {
        return "hello world four";
    }


}
